package com.zpark.servlet_listener;

import javax.servlet.annotation.WebListener;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

/**
 * @PackageName: com.zpark.servlet_listener
 * @ClassName: SessionInitDestroy
 * @Description:
 * @author: RZS
 * @date: 2023/3/13  16:07
 */
@WebListener
public class SessionInitDestroy implements HttpSessionListener {
    @Override
    public void sessionCreated(HttpSessionEvent se) {
        System.out.println("Session对像创建");
    }

    @Override
    public void sessionDestroyed(HttpSessionEvent se) {
        System.out.println("Session对像销毁");
    }
}
